package org.warehouse.entity;

public class Group implements IEntity {
	private final Integer id;

	private final String name;
	
	/**
	 * TODO should be remade
	 */
	private final Integer productCount;

	public Group(String name, Integer productCount) {
		this(null, name, productCount);
	}

	public Group(Integer id, String name, Integer productCount) {
		this.id = id;
		this.name = name;
		this.productCount = productCount;
	}

	@Override
	public Integer getId() {
		return id;
	}

	public String getName() {
		return name;
	}
	
	public Integer getProductCount() {
	    return productCount;
    }
}
